package com.spring.cloud.consumer.project.service;

import com.spring.cloud.consumer.project.service.impl.UserServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import com.spring.cloud.comment.entity.UserPO;

import java.util.List;

@FeignClient(name = "provider-h1",url="127.0.0.1:8081",fallback = UserServiceImpl.class)
public interface UserService {
    @GetMapping(value = "getUser")
    List<UserPO> getUser();
}
